package pdf;

import java.io.File;
import java.io.IOException;
import java.io.Serializable;
import java.nio.file.Files;

/**
 * PDF files are read to this class and sent with it.
 * Needed in order to send serializable object.
 *
 */
public class PDFfile implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	public byte[] input;
	public PDFfile(File x) throws IOException
	{
			input=Files.readAllBytes(x.toPath());
	}

}
